package package_Arrays.exemple04;

public class Main {

	public static void main(String[] args) {
		// hem de prendre la temperatura 2 cops al dia cada dia de la setmana
		double [][] temps = new double [2][5];
		final short LUNES =0, MARTES = 1, MIERCOLES =2, JUEVES=3, VIERNES =4;
		final short MATI =0, TARDA=1;
		//9:00 del dilluns
		temps [MATI][LUNES]=8.4;
		//17:00 del dilluns
		temps [TARDA][LUNES]=14.1;
		//9:00 del dimarts
		temps [MATI][MARTES]=6.1;
		//17:00 del dimarts
		temps [TARDA][MARTES]=8.3;
		
		temps [MATI][MIERCOLES]=7.4;
		//17:00 del dimarts
		temps [TARDA][JUEVES]=11.1;
		temps [MATI][VIERNES]=7.9;
		//17:00 del dimarts
		temps [TARDA][VIERNES]=16.3;
		
		
		for (int i=0; i<temps.length ; i++) {
			System.out.println(i==0? "Mati": "Tarda");
			for (int j=0; j<temps[i].length;j++) {
				System.out.print(temps[i][j]+", ");
			}
			System.out.println();
		}
		
	}

}
